package com.example.hcd.datamanage;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;

import android.content.Context;

public class BorrowData {
	private Context context; 
	
	//借款标题
	private String title;
	//借款金额
	private String amount;
	//借款方式
	private String type;
	//开户银行
	private String bank;
	//银行账号
	private String numofbank;
	//借款理由
	private String remark;
	
	//借款人和部門
	private String applicant;
	//key
	private String key;
	//流程狀態
	private String processStatus;
	//流程狀態值
	private String processStatusValue;
	//流程ID
	private String processInstanceId;
	//借款人ID
	private String userid;
	//借款時間
	private String borrowTime;
	//業務ID
	private String ID;
	//任務ID
	private String taskId;
	
	//当前绑定的报销列表
	private ArrayList<ReimburseData> reimburseList = new ArrayList<ReimburseData>();
	
	//报销总计
	private long reimburSum;
	//差价
	private long diffPrice;
	public BorrowData(Context context)
	{
		this.context = context;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getAmount() {
		return amount;
	}
	public void setAmount(String amount) {
		this.amount = amount;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public String getApplicant() {
		return applicant;
	}
	public void setApplicant(String applicant) {
		this.applicant = applicant;
	}
	public String getKey() {
		return key;
	}
	public void setKey(String key) {
		this.key = key;
	}
	public String getProcessStatus() {
		return processStatus;
	}
	public void setProcessStatus(String processStatus) {
		this.processStatus = processStatus;
	}
	public String getProcessStatusValue() {
		return processStatusValue;
	}
	public void setProcessStatusValue(String processStatusValue) {
		this.processStatusValue = processStatusValue;
	}
	public String getProcessInstanceId() {
		return processInstanceId;
	}
	public void setProcessInstanceId(String processInstanceId) {
		this.processInstanceId = processInstanceId;
	}
	public String getUserid() {
		return userid;
	}
	public void setUserid(String userid) {
		this.userid = userid;
	}
	public String getBorrowTime() {
		SimpleDateFormat mFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm");
		long time = Long.parseLong(borrowTime);
		return mFormat.format(new Date(time));
	}
	public void setBorrowTime(String borrowTime) {
		this.borrowTime = borrowTime;
	}
	public String getID() {
		return ID;
	}
	public void setID(String iD) {
		ID = iD;
	}
	public String getTaskId() {
		return taskId;
	}
	public void setTaskId(String taskId) {
		this.taskId = taskId;
	}
	public String getBank() {
		return bank;
	}
	public void setBank(String bank) {
		this.bank = bank;
	}
	public String getNumofbank() {
		return numofbank;
	}
	public void setNumofbank(String numofbank) {
		this.numofbank = numofbank;
	}
	public ArrayList<ReimburseData> getReimburseList() {
		return reimburseList;
	}
	public void setReimburseList(ArrayList<ReimburseData> reimburseList) {
		this.reimburseList = reimburseList;
	}
	public long getReimburSum() {
		return reimburSum;
	}
	public void setReimburSum(long reimburSum) {
		this.reimburSum = reimburSum;
	}
	public long getDiffPrice() {
		return diffPrice;
	}
	public void setDiffPrice(long diffPrice) {
		this.diffPrice = diffPrice;
	}
	
	
	
	

}
